package com.gyg.client;

import com.gyg.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloudMessageClient", url = "${cloud.box.url}")
public interface CloudMessageClient {

    /**
     * 消息列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    @GetMapping("/cloud-message/list")
    RespEntity cloudMessageList(@RequestParam(value = "pageNum", required = true) Integer pageNum,
                                @RequestParam(value = "pageSize", required = true) Integer pageSize);

    /**
     * 消息数量
     * @return
     */
    @GetMapping("/cloud-message/count")
    RespEntity cloudMessageCount();
}
